import Login from '../pages/Login'
import Main from '../pages/Main'
import CityPicker from '../pages/CityPicker'
import AddContact from '../pages/AddContact'
import ShareMapView from '../pages/ShareMapView'
import MyExpress from '../pages/MyExpress'
import MyShare from '../pages/MyShare'


const routes = [
    {path: '/', component: Main},
    {
        path: '/login', component: Login, meta: {
            direction: 'slide-left'//需要左滑动画的属性
        }
    },
    {
        path: '/city', component: CityPicker, meta: {
            direction: 'slide-left'//需要左滑动画的属性
        }
    },
    {
        path: '/contact', component: AddContact, meta: {
            direction: "slide-left"
        }
    },
    {
        path: '/share/map', component: ShareMapView, meta: {
            direction: "slide-left"
        }
    },
    {
        path: '/my/express', component: MyExpress, meta: {
            direction: "slide-left"
        }
    },
    {
        path: '/my/share', component: MyShare, meta: {
            direction: "slide-left"
        }
    }

]

export default routes;